# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-settings
pkgver=0.6
pkgrel=0
pkgdesc="The Glacier settings application"
url="https://github.com/nemomobile-ux/glacier-settings"
# armhf blocked by qtquickcontrols-nemo
arch="all !armhf"
license="LGPL-2.0-or-later"
depends="
	bluez-qt
	bluez-obexd
	mapplauncherd
	nemo-qml-plugin-dbus
	nemo-qml-plugin-settings
	nemo-qml-plugin-systemsettings
	qtquickcontrols-nemo
	"
makedepends="
	cmake
	libglacierapp-dev
	libqofono-dev
	nemo-qml-plugin-devicelock-dev
	nemo-qml-plugin-systemsettings-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtlocation-dev
	qt5-qttools-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/nemomobile-ux/glacier-settings/archive/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
06991dd5bbee9bd01ae03a9c7be177bee1abd06477f815fbe5ded2736f24839baa0aac59aa9409cabc6920464306a87a599986d4fa936b8ae6a1614ff42222c1  glacier-settings-0.6.tar.gz
"
